package com.xj.onetosix;

import java.util.Scanner;

public class zuoye {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
 /*       System.out.println("请输入一个整数");
        int number = scanner.nextInt();

        if (number > 0)
            System.out.println("数字为正");
        else if (number < 0) {
            System.out.println("数字为负");


        } else
            System.out.println("数字为0");*/



     /*   System.out.println("请输入一个整数");
        int number = scanner.nextInt();
        if (number % 2 == 0) {
            System.out.println("数字为偶");
        }
        else {
            System.out.println("数字为奇");
        }*/


    /*    System.out.println("请输入一个年份");
        int year = scanner.nextInt();
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println("该年为闰年");
        }
        else {
            System.out.println("该年为平年");
        }
*/


        System.out.println("请输入一个字符数据：");
        char char1 = scanner.next().charAt(0);
        if ((char1 >= 'a' && char1 <= 'z') || (char1 >= 'A' && char1 <= 'Z')){
            System.out.println(char1+"是字母字符");
        }else{
            System.out.println(char1+"不是字母字符");
        }

    }
}
